<?php

/**
 * Contains error handler output.
 *
 * LICENSE: MIT
 *
 * @author Peter Pippinger
 * @category PP
 * @package PP_Error
 * @copyright Copyright (c) 2015 Peter Pippinger
 * @license http://opensource.org/licenses/MIT
 * @version 1.1.0
 * @since Class exists since release 1.0.0
 */
session_start();
$sid = session_id();

$errorFile = $_SESSION["ROOT_PATH"] . "/tmp/$sid.err";
$error = unserialize(file_get_contents($errorFile));
unlink($errorFile);

?>
<!DOCTYPE html>
<html>
<head>
<title>Ups!</title>
<meta charset="utf-8" />
</head>
<body
	style="background: rgb(76, 76, 76); padding: 20px; margin: 0px; color: white; font-family: courier; font-size: 14px;">
	<span style="color: rgb(76, 76, 76); background: silver;"><b>&nbsp;&nbsp;Tables&nbsp;&nbsp;</b></span>
	<br />
	<br /> Ein unbehandelter Fehler ist aufgetreten:
	<br />
	<br />
		Typ <?php print_r($error["type"]); ?> : <?php print_r($error["message"]); ?> in <?php print_r($error["file"]); ?> (<?php print_r($error["line"]); ?>)<br />
	<br />
	<br />
	<b>[Senden]&nbsp;&nbsp;&nbsp;[Schlie&szlig;en]</b>
</body>
</html>